package com.mrx.xfriendship.dao;

import com.mrx.xfriendship.model.dto.PairDTO;
import com.mrx.xfriendship.model.po.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Mr.X
 * @since 2023-01-21 11:22
 */
@Mapper
public interface DashboardMapper {


    List<UserPO> selectUserIncrement(@Param("fromDay") Integer fromDay, @Param("nowDay") Integer nowDay);

    List<UserPO> selectCommentIncrement(@Param("fromDay") Integer fromDay, @Param("nowDay") Integer nowDay);

    List<UserPO> selectPostIncrement(@Param("fromDay") Integer fromDay, @Param("nowDay") Integer nowDay);

    List<PairDTO> userGenderCount();

    List<PairDTO> userAreaCount();

    List<PairDTO> guestAreaCount();

}
